import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/filter',
      name: 'filter',
      component: ()=>import('@/components/filter')
    },
    {
      path: '/render',
      name: 'render',
      component: ()=>import('@/components/render')
    },
    {
      path: '/test',
      name: 'test',
      component: ()=>import('@/components/test')
    },
    {
      path: '/vuex',
      name: 'vuex',
      component: ()=>import('@/components/vuex-test')
    }
  ]
})
